package org.bbs.demo.concern.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.bbs.demo.concern.dto.ConcernDto;
import org.bbs.demo.user.model.User;

@Mapper
public interface DeleteConcernDao {
    @Delete("delete from follower where follow_id = #{follow_id} and user_id = #{user_id}")
    public int deleteConcern(ConcernDto concernDto);

    @Select("select * from follower where follow_id = #{follow_id} and user_id = #{user_id}")
    public ConcernDto findConcern(ConcernDto concernDto);

    @Select("select * from bbsusers where user_id = #{user_id}")
    public User findUser(String user_id);
}
